<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>影评文章列表</title>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="assets/css/bootstrap-maizi.css"/>
</head>
<body>
<!--导航-->
<jsp:include page="header.jsp"></jsp:include>
<!--导航-->

<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="${pageContext.request.contextPath }/adminEvaluation" class="list-group-item active">影片评价列表</a>
                <a href="${pageContext.request.contextPath }/adminEvaluation?method=indexReview"
                   class="list-group-item">影评文章列表</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>影评管理</h1>
            </div>
            <table class="table">
                <thead>
                <tr>
                    <th class="hidden">影评文章ID</th>
                    <th>影片名称</th>
                    <th>评价人</th>
                    <th>评分</th>
                    <th>影评文章题目</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="movieReview" items="${movieReviewList}">
                    <tr>
                        <td class="hidden">${movieReview.id}</td>
                        <td>${movieReview.mov_name}</td>
                        <td>${movieReview.author}</td>
                        <td>${movieReview.score}</td>
                        <td>${movieReview.title}</td>
                        <td>
                            <div role="presentation" class="dropdown">
                                <button class="dropdown-toggle btn btn-default" data-toggle="dropdown" href="#"
                                        role="button" aria-haspopup="true" aria-expanded="false">点击 <span
                                        class="caret"></span>
                                </button>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a href="${pageContext.request.contextPath }/adminEvaluation?method=detailsReview&id=${movieReview.id}">查看</a>
                                    </li>
                                    <li>
                                        <a href="${pageContext.request.contextPath }/adminEvaluation?method=deleteReview&id=${movieReview.id}">删除</a>
                                    </li>
                                </ul>
                            </div>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>

<!--footer-->
<jsp:include page="footer.jsp"></jsp:include>
<!--footer-->

<script src="assets/javascripts/jquery.min.js"></script>
<script src="assets/javascripts/bootstrap.min.js"></script>
<script src="assets/javascripts/Chart.js"></script>
<script src="assets/javascripts/script.js"></script>
</body>
</html>